<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%score_log}}".
 *
 * @property integer $id
 * @property integer $c_id
 * @property integer $ex_id
 * @property integer $or_id
 * @property integer $type
 * @property integer $score
 * @property string $des
 * @property integer $flag
 * @property integer $create_time
 */
class ScoreLog extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%score_log}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['c_id', 'type', 'create_time'], 'required'],
            [['c_id', 'ex_id', 'or_id', 'type', 'score', 'flag', 'create_time'], 'integer'],
            [['des'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'c_id' => 'C ID',
            'ex_id' => 'Ex ID',
            'or_id' => 'Or ID',
            'type' => 'Type',
            'score' => 'Score',
            'des' => 'Des',
            'flag' => 'Flag',
            'create_time' => 'Create Time',
        ];
    }
}
